export const way1 = `
<template>
<div style="position:relative">
    <PhLoading ref="loading">
</div>
</template>
<script lang="ts" setup>
import { PhLoading } from 'phoeon'
const loading = ref() as Ref<InstanceType<typeof PhLoading>>
const onclick = ()=>{
    loading.value?.show()
}
</script>
`;
export const way2 = `
//全局
import {PhGLoading} from 'phoeon'
<script>
PhGLoading
.show(opt?:{
    alpha?:boolean, //透明
    closable?:boolean, //是否可关闭
    title?:string //文本提示
})
.hide()
</script>
`;
export const baseUsage = `
import {PhLoading} from 'phoeon'
interface Loading{
    show(opt?:{
        alpha?:boolean, //透明
        closable?:boolean, //是否可关闭
        title?:string //文本提示
    }):void
    hide():void
}
`;
